/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package elevatronic.controllers;

import elevatronic.models.Elevator;
import pl.gdan.elsy.qconf.Action;

/**
 *
 * @author Exosta
 */
public class GoingDown extends Action {

    private ArtificialElevator elevator;
        
    @Override
    public int execute() {
        this.elevator.getElevator().setRemainingTime(this.elevator.getElevator().getRemainingTime() - (int)(1 / Elevator.SPEED));
        return 1;
    }
    
}
